import { BasicColumn, FormSchema } from '@apps/antd-admin/src/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '商户名称',
    dataIndex: 'nongyeParamName',
    width: 200,
  },
  {
    title: '款台号',
    dataIndex: 'countNo',
    width: 200,
  },
  {
    title: '备注',
    dataIndex: 'remark',
    width: 200,
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    width: 200,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'nongyeParamName',
    label: '商户名称',
    component: 'Input',
    colProps: { span: 4 },
  },
  {
    field: 'countNo',
    label: '款台号',
    component: 'Input',
    colProps: { span: 4 },
  },
];

export const formSchema: FormSchema[] = [
  {
    label: '农业支付参数Id',
    field: 'nongyePayParamId',
    component: 'Input',
    required: false,
    show: false,
  },
  {
    label: '商户名称',
    field: 'nongyeParamName',
    component: 'Input',
    required: true,
  },
  {
    label: '款台号',
    field: 'countNo',
    component: 'Input',
    required: true,
  },
  {
    label: '商户公钥',
    field: 'publicKey',
    component: 'InputTextArea',
    required: true,
    componentProps: {
      autosize: true,
    },
  },
  {
    label: '商户私钥',
    field: 'privateKey',
    component: 'InputTextArea',
    required: true,
    componentProps: {
      autosize: true,
    },
  },
  {
    label: '备注',
    field: 'remark',
    component: 'InputTextArea',
    required: false,
  },
];
